package com.gxc.mall.goods.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author GongXincheng
 * @since 2019-09-03 17:49
 */
@FeignClient(value = "${mall.service-name.user}", url = "${mall.url.user:}", fallbackFactory = UserFeignFallbackFactory.class)
public interface UserFeign {

    @GetMapping(value = "/hello", consumes = "application/json;charset=UTF-8")
    String hello();

    @GetMapping(value = "/hello2")
    Object hello2();

    @GetMapping(value = "/hello3")
    Object hello3(@RequestParam("name") String name);

}
